package com.wing.purchase.model.response;

import com.baomidou.mybatisplus.annotation.TableField;
import com.wing.purchase.model.entity.PurQualityTestingTaskDetail;
import com.wing.purchase.model.entity.PurQualityTestingTaskDetailValue;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.List;

/**
 * @Description: 采购-质检任务
 * @Project: pur_quality_testing_task
 * @Date: 2024/12/26 10:28
 * @Author: heZhou
 * @Version: 1.0
 */
@Data
@NoArgsConstructor
@Accessors(chain = true)
public class PurQualityTestingTaskDetailSearchVo implements Serializable {
    private static final long serialVersionUID = 1L;

    private Long id;

    /**
     * 明细编码
     */
    private String detailCode;

    /**
     * 任务编码
     */
    private String taskCode;

    /**
     * 质检分类id
     */
    private Long qualityTestingCategoryId;

    /**
     * 质检分类
     */
    @TableField(exist = false)
    private String qualityTestingCategoryName;

    /**
     * 质检类型id
     */
    private Long qualityTestingTypeId;

    /**
     * 质检类型
     */
    @TableField(exist = false)
    private String qualityTestingTypeName;


    /**
     * 状态
     */
    private String status;

    @TableField(exist = false)
    private String statusName;


    /**
     * 质检类型
     */
    private String qcQualityTypeId;

    @TableField(exist = false)
    private String qcQualityTypeName;

    /**
     * 批次号
     */
    private String batchNumber;


    /**
     * 来源
     */
    private String sourceType;

    /**
     * 来源名称
     */
    @TableField(exist = false)
    private String sourceTypeName;

    /**
     * 订单id/供应商发货记录id
     */
    private Long orderId;

    /**
     * 订单code/供应商发货记录code
     */
    private String orderCode;

    /**
     * 物料id
     */
    private Long productDetailId;

    /**
     * 物料code
     */
    @TableField(exist = false)
    private String skuCode;

    /**
     * 物料规格
     */
    @TableField(exist = false)
    private String skuSpec;

    /**
     * 物料名称
     */
    @TableField(exist = false)
    private String skuName;

    /**
     * 供应商id
     */
    private Long supplierId;

    /**
     * 供应商名称
     */
    @TableField(exist = false)
    private String supplierName;

    /**
     * 检验员id
     */
    private Long checkUserId;

    /**
     * 检验员名称
     */
    private String checkUserName;

    /**
     * 检验时间
     */
    private LocalDateTime checkTime;

    /**
     * 创建时间
     */
    private LocalDateTime createTime;

    /**
     * 检测项
     */
    private List<PurQualityTestingTaskDetailValue> detailValues;
}
